package co.fitstart.admin.handler;

import java.io.IOException;
import java.io.InputStream;

import com.demo2do.core.support.Result;

import co.fitstart.entity.order.Order;
import co.fitstart.entity.user.User;

public interface FileHandler {
    
    /**
     * 
     * @param order
     * @param user
     * @param inputStream
     */
    public void saveQrcode(Order order, User user, InputStream inputStream);
    
    /**
     * 
     * @param user
     * @param inputStream
     * @return
     */
    public Result saveUserQrcode(User user, InputStream inputStream);
    
    /**
     * 
     * @param filename
     * @param orginFileName
     * @param inputStream
     * @return
     * @throws IOException
     */
    public String saveVideo(String filename, String orginFileName,InputStream inputStream) throws IOException;
    
    /**
     * 
     * @param filename
     * @return 
     */
    public boolean delete(String filename);
}
